package org.aurora.core.server.scheduler;

import org.aurora.model.entity.Task;

import java.util.Set;

public class TaskToClientAddressWrapper {
    private Task task;

    private Set<String>/*clientIp+:+clientPort*/ clientAddress;

    public TaskToClientAddressWrapper(Task task, Set<String> clientAddress) {
        this.task = task;
        this.clientAddress = clientAddress;
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    public Set<String> getClientAddress() {
        return clientAddress;
    }

    public void setClientAddress(Set<String> clientAddress) {
        this.clientAddress = clientAddress;
    }

    public void addClientAddress(String clientAddress) {
        this.clientAddress.add(clientAddress);
    }
}
